/**
 * futures : masterlink.futures.dao.AccountDao.java
 */
package masterlink.futures.dao;

import java.util.List;

import masterlink.futures.vo.SysTrid;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * TODO Write the description
 *
 * @author : tonyyang
 * Create date : 2011/10/25
 * @version 1.0.0	
 */
@Repository
@Qualifier("SysTridDao")
public class SysTridDao extends TimesTenTemplateDao{
	
	private static final String FUTURES_TIRD="from SysTrid where category=1";
	private static final String OPTIONS_TIRD="from SysTrid where category=2";
	
	@SuppressWarnings("unchecked")
	public List<SysTrid> findFututresTrid(){
		return (List<SysTrid>) super.findByHql(FUTURES_TIRD) ;
	}
	
	@SuppressWarnings("unchecked")
	public List<SysTrid> findOptionsTrid(){
		return (List<SysTrid>) super.findByHql(OPTIONS_TIRD) ;
	}
}
